<form nz-form [formGroup]="validateForm" class="ant-advanced-search-form search">
      <div nz-col [nzSpan]="8">
        <nz-form-item>
          <nz-form-label *ngIf="isRequired(validateForm.get('inputForm'))" nzRequired>输入框</nz-form-label>
          <nz-form-label *ngIf="!isRequired(validateForm.get('inputForm'))">输入框</nz-form-label>
          <nz-form-control [nzErrorTip]="inputErrTip">
            <input nz-input formControlName="inputForm" id="MACAddress" />
          </nz-form-control>
        </nz-form-item>
      </div>
      <div nz-col [nzSpan]="24" class="search_area">
    </div>
</form>
<button nz-button [nzType]="'primary'" [disabled]="!validateForm.valid" (click)="submitForm()">提交</button>
<button nz-button (click)="logRequired()">查看输入框是否为必填字段</button>
<button nz-button (click)="changeRequired()">修改输入框是否为必填字段</button>
